# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-txsocksx
pkgver=1.15.0.2
pkgrel=3
pkgdesc='Twisted client endpoints for SOCKS{4,4a,5}.'
arch=('any')
url='https://pypi.python.org/pypi/txsocksx/'
license=('ISC')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/ed/36/5bc796eb2612b500baa26a68481d699e08af5382152a9de18e5a45b44ea7/txsocksx-$pkgver.tar.gz")
sha512sums=('a9a214248aa299b3f2def0e15c3a9c2f78286bc245421844f17d1535b5bb62b7a0a6ee8f1e72963556f8658c8eb914ce4e2e2e0c135abdea3e5a8a1d2165f988')

build() {
  cd "txsocksx-$pkgver"

  python2 setup.py build
}

package() {
  cd "txsocksx-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

